package cn.gjculture.shopping.api.service;

import cn.gjculture.shopping.api.entity.Commodity;
import cn.gjculture.shopping.api.entity.Goods;
import cn.gjculture.shopping.api.entity.PostageTemplate;
import cn.gjculture.shopping.api.entity.Supplier;

import java.util.List;

public interface GoodsService {

    int insert(Goods goods);

    List<Goods> query(Goods goods);

    int deleteMore(List<String> goodsIds);

    Goods queryById(String goodsId);

    int update(Goods goods);

    List<Goods> queryByTypeId(String goodsTypeId);

    int recommended(Goods goods);

    List<Goods> queryRecommended();

    int updateStatus(Goods goods);

    void handleThumb(String goodsId, List<Commodity.Thumbnail> thumbnails);

    int insertThumbnail(List<Commodity.Thumbnail> thumbnails, String hotelId);

    int updateOther(Goods data);

    List<Goods> queryDiscountCoupon();

    Supplier querySupplierByGoodsId(String goodsId);

    int addPostageTemplate(String postageTemplateIds, String goodsId);

    int deletePostageTemplate(String goodsId, String postageTemplateId);

    List<PostageTemplate> queryPostageTemplateByGoodsId(String goodsId);
}
